gtk4.git
10 years agoscale: add a gadget for every mark
Cosimo Cecchi [Sun, 28 Feb 2016 21:45:48 +0000 (13:45 -0800)]
scale: add a gadget for every mark

We want to add another gadget for the mark indicator. This will allow us
to do so.

10 years agoAdwaita: add minimum size for marks
Cosimo Cecchi [Mon, 29 Feb 2016 00:04:17 +0000 (16:04 -0800)]
Adwaita: add minimum size for marks

It's still suboptimal, because there's no way to control the size of the
indicator alone, but this does the job for now.

10 years agogadget: improve debug message
Cosimo Cecchi [Sun, 28 Feb 2016 22:52:14 +0000 (14:52 -0800)]
gadget: improve debug message

10 years agorange: draw slider on top of all contents
Cosimo Cecchi [Sun, 28 Feb 2016 18:00:15 +0000 (10:00 -0800)]
range: draw slider on top of all contents

This is so that e.g. the focus ring is drawn under the slider.

10 years agoscale: implement rendering for marks gadgets
Cosimo Cecchi [Sun, 28 Feb 2016 17:23:14 +0000 (09:23 -0800)]
scale: implement rendering for marks gadgets

This completes the conversion of scale marks to gadgets.

10 years agoscale: implement size allocate for mark gadgets
Cosimo Cecchi [Sun, 28 Feb 2016 08:12:22 +0000 (00:12 -0800)]
scale: implement size allocate for mark gadgets

This allows to move the mark sections around with e.g. margins.

10 years agoscale: port marks size request to gadgets
Cosimo Cecchi [Sat, 27 Feb 2016 23:24:32 +0000 (15:24 -0800)]
scale: port marks size request to gadgets

10 years agoscale: use gadgets instead of nodes for mark containers
Cosimo Cecchi [Sat, 27 Feb 2016 23:08:04 +0000 (15:08 -0800)]
scale: use gadgets instead of nodes for mark containers

The gadget is not yet allocated though.

10 years agoscale: rename function arguments
Cosimo Cecchi [Sat, 27 Feb 2016 21:48:19 +0000 (13:48 -0800)]
scale: rename function arguments

To make them clearer. No functional change here.

10 years agoscale: remove unused argument
Cosimo Cecchi [Sat, 27 Feb 2016 21:44:22 +0000 (13:44 -0800)]
scale: remove unused argument

It's always GTK_POS_TOP.

10 years agorange: better hack for GtkColorScale
Cosimo Cecchi [Sun, 28 Feb 2016 07:19:13 +0000 (23:19 -0800)]
range: better hack for GtkColorScale

Just draw the slider, since that is the only thing GtkColorScale cares
about.

10 years agorange: deprecate gtk_range_get/set_min_slider_size()
Cosimo Cecchi [Sat, 27 Feb 2016 21:37:01 +0000 (13:37 -0800)]
range: deprecate gtk_range_get/set_min_slider_size()

Nothing uses these functions inside GTK anymore.

10 years agorange: don't use gtk_range_set_min_slider_size()
Cosimo Cecchi [Sat, 27 Feb 2016 21:31:26 +0000 (13:31 -0800)]
range: don't use gtk_range_set_min_slider_size()

The way this method is used from the GtkRange subclasses doesn't really
work well when the slider properties change as a consequence of e.g. a
style class being applied (e.g. the fine-tune style class).

In fact, there's no need to read the minimum slider size out of band,
and we can obtain the same result in a way that always work by setting a
private property on GtkRange.

10 years agoAdwaita: some more WIP theme work for the new scale
Lapo Calamandrei [Thu, 25 Feb 2016 16:49:12 +0000 (17:49 +0100)]
Adwaita: some more WIP theme work for the new scale

10 years agogadget: simplify code
Cosimo Cecchi [Wed, 24 Feb 2016 23:51:40 +0000 (15:51 -0800)]
gadget: simplify code

10 years agorange: use border box for slider area
Cosimo Cecchi [Wed, 24 Feb 2016 23:35:28 +0000 (15:35 -0800)]
range: use border box for slider area

Since we can use negative margins, we should not use the margin box
for the slider area. Use the border box instead, since that's what is
typically mapped to the visible area.

10 years agorange: use new GtkCssGadget API instead of rolling our own
Cosimo Cecchi [Wed, 24 Feb 2016 22:29:52 +0000 (14:29 -0800)]
range: use new GtkCssGadget API instead of rolling our own

10 years agogadget: add API to get various area boxes
Cosimo Cecchi [Wed, 24 Feb 2016 22:21:10 +0000 (14:21 -0800)]
gadget: add API to get various area boxes

Compared to the function returning the allocation, these will return the
box in gadget coordinates.

10 years agorange: simplify code
Cosimo Cecchi [Wed, 24 Feb 2016 21:53:13 +0000 (13:53 -0800)]
range: simplify code

Instead of directly accessing the widget allocation, we can use the
gadget API to test whether the coordinates are in the main gadget.

10 years agoAdwaita: WIP for new range theme
Lapo Calamandrei [Wed, 24 Feb 2016 21:36:14 +0000 (13:36 -0800)]
Adwaita: WIP for new range theme

10 years agorange: add a gadget for the whole widget area
Cosimo Cecchi [Wed, 24 Feb 2016 21:28:54 +0000 (13:28 -0800)]
range: add a gadget for the whole widget area

This commit introduces another node, called "contents", that holds the
main contents of the range. This allows for the main gadget itself to
span across the whole surface of the widget now.

10 years agoscale: always add marks at the beginning or the end
Cosimo Cecchi [Wed, 24 Feb 2016 20:24:41 +0000 (12:24 -0800)]
scale: always add marks at the beginning or the end

Marks are always either the first or the last child of the scale.

10 years agorange: use new GtkBoxGadget API instead of counting children
Cosimo Cecchi [Wed, 24 Feb 2016 20:01:07 +0000 (12:01 -0800)]
range: use new GtkBoxGadget API instead of counting children

10 years agoboxgadget: add APIs to insert gadgets next to siblings
Cosimo Cecchi [Wed, 24 Feb 2016 20:00:46 +0000 (12:00 -0800)]
boxgadget: add APIs to insert gadgets next to siblings

10 years agorange: use new GtkBoxGadget API instead of removing/inserting
Cosimo Cecchi [Wed, 24 Feb 2016 19:43:06 +0000 (11:43 -0800)]
range: use new GtkBoxGadget API instead of removing/inserting

10 years agoboxgadget: add API to set expand/align flags for gadget child
Cosimo Cecchi [Wed, 24 Feb 2016 18:34:15 +0000 (10:34 -0800)]
boxgadget: add API to set expand/align flags for gadget child

10 years agorange: move slider drawing where it belongs
Cosimo Cecchi [Tue, 23 Feb 2016 18:45:19 +0000 (10:45 -0800)]
range: move slider drawing where it belongs

The slider gadget is a child of the trough gadget, so draw it from
there.

10 years agoscrollbar: deprecate min-slider-length style property
Cosimo Cecchi [Tue, 23 Feb 2016 06:00:57 +0000 (22:00 -0800)]
scrollbar: deprecate min-slider-length style property

In favor of min-height/min-width, like we did for other similar
properties.

10 years agorange: whitespace fix
Cosimo Cecchi [Tue, 23 Feb 2016 05:31:31 +0000 (21:31 -0800)]
range: whitespace fix

10 years agorange: remove border allocation hack
Cosimo Cecchi [Tue, 23 Feb 2016 05:19:03 +0000 (21:19 -0800)]
range: remove border allocation hack

We can achieve the same result with a negative margin.

10 years agocolorscale: don't use style properties to determine slider size
Cosimo Cecchi [Tue, 23 Feb 2016 03:08:09 +0000 (19:08 -0800)]
colorscale: don't use style properties to determine slider size

10 years agoRevert "range: move GtkColorScale special case to GtkColorScale"
Cosimo Cecchi [Tue, 23 Feb 2016 02:54:24 +0000 (18:54 -0800)]
Revert "range: move GtkColorScale special case to GtkColorScale"

This reverts commit d93d266ed9e3e26e382a4f6d4b5d4ea19eff3bcf.

10 years agoRevert "range: simplify code"
Cosimo Cecchi [Tue, 23 Feb 2016 02:54:16 +0000 (18:54 -0800)]
Revert "range: simplify code"

This reverts commit a74f7dcaf8a02c96c6bfecab6969e1d33ecb9332.

10 years agorange: simplify code
Cosimo Cecchi [Tue, 23 Feb 2016 02:28:30 +0000 (18:28 -0800)]
range: simplify code

Now that everything is in the main gadget, we can just let it propagate
drawing to its children.

10 years agorange: move GtkColorScale special case to GtkColorScale
Cosimo Cecchi [Tue, 23 Feb 2016 02:27:52 +0000 (18:27 -0800)]
range: move GtkColorScale special case to GtkColorScale

Now we can just tweak the node visibility for it.

10 years agorange: remove special case that's not needed
Cosimo Cecchi [Tue, 23 Feb 2016 02:18:37 +0000 (18:18 -0800)]
range: remove special case that's not needed

We already set the gadget not to be visible in that case.

10 years agorange: move slider inside the trough
Cosimo Cecchi [Tue, 23 Feb 2016 02:11:02 +0000 (18:11 -0800)]
range: move slider inside the trough

This will require a rewrite of most of the theme, but it's the right
thing to do.

10 years agoscale: deprecate slider-length style property
Cosimo Cecchi [Sun, 21 Feb 2016 23:01:04 +0000 (15:01 -0800)]
scale: deprecate slider-length style property

This can be achieved using min-height/min-width CSS properties now.

10 years agorange: deprecate more style properties
Cosimo Cecchi [Sun, 21 Feb 2016 08:33:36 +0000 (00:33 -0800)]
range: deprecate more style properties

These are never read now.

10 years agorange: continue porting to GtkGadgets
Cosimo Cecchi [Tue, 19 Jan 2016 09:22:33 +0000 (07:22 -0200)]
range: continue porting to GtkGadgets

This commit rewrites a lot of the GtkRange internals to make full use
of the gadget structure.

10 years agogadget: add hit test functions
Cosimo Cecchi [Tue, 19 Jan 2016 09:21:46 +0000 (07:21 -0200)]
gadget: add hit test functions

These will be useful in later commits.

10 years agorange: remove unused code
Cosimo Cecchi [Sun, 17 Jan 2016 19:27:03 +0000 (17:27 -0200)]
range: remove unused code

10 years agorange: remove call that is not needed
Cosimo Cecchi [Sun, 17 Jan 2016 19:24:01 +0000 (17:24 -0200)]
range: remove call that is not needed

gtk_range_calc_slider() already calls the same function when needed.

10 years agorange: simplify code a bit
Cosimo Cecchi [Sun, 17 Jan 2016 00:44:50 +0000 (16:44 -0800)]
range: simplify code a bit

10 years agorange: don't call gtk_range_calc_layout() in realize()
Cosimo Cecchi [Sun, 17 Jan 2016 00:30:59 +0000 (16:30 -0800)]
range: don't call gtk_range_calc_layout() in realize()

This should not be needed, and we want to get rid of
gtk_range_calc_layout().

10 years agorange: deprecate arrow-scaling style property
Cosimo Cecchi [Sun, 17 Jan 2016 00:27:35 +0000 (16:27 -0800)]
range: deprecate arrow-scaling style property

This can be done with CSS now.

10 years agorange: use newer GtkCssGadget API
Cosimo Cecchi [Sun, 17 Jan 2016 00:27:24 +0000 (16:27 -0800)]
range: use newer GtkCssGadget API

10 years agorange: deprecate trough-under-steppers
Cosimo Cecchi [Wed, 13 Jan 2016 23:01:47 +0000 (15:01 -0800)]
range: deprecate trough-under-steppers

It's not clear what this would do in a CSS world, and all the themes set
it to TRUE anyway...

10 years agorange: first pass at porting to gadgets
Cosimo Cecchi [Sat, 9 Jan 2016 22:00:09 +0000 (14:00 -0800)]
range: first pass at porting to gadgets

There's still a lot to be done, but this is functional and we'll improve
the loose ends in the next commits.

10 years agoMove the level bar release note to the right section
Matthias Clasen [Mon, 29 Feb 2016 18:16:50 +0000 (13:16 -0500)]
Move the level bar release note to the right section

10 years agowin32: init wintab when the device manager is constructed
Paolo Borelli [Mon, 29 Feb 2016 17:03:38 +0000 (18:03 +0100)]
win32: init wintab when the device manager is constructed

No need to call a method explicitely after creating the object

10 years agowin32: actually call _gdk_win32_screen_on_displaychange_event
Paolo Borelli [Mon, 29 Feb 2016 17:17:28 +0000 (18:17 +0100)]
win32: actually call _gdk_win32_screen_on_displaychange_event

41a371c435533aee5f050500c90507844cb1e45e factored out a method
but I forgot to actually amend the commit to call the new function

10 years agowayland: deal with staging buffer getting allocated prematurely
Ray Strode [Sat, 27 Feb 2016 21:17:38 +0000 (16:17 -0500)]
wayland: deal with staging buffer getting allocated prematurely

The staging buffer gets allocated any time begin_paint is called
on the window. This can happen even with an empty paint region,
so we should cope with that situation. At the moment we crash
trying to post a runtime warning.

https://bugzilla.gnome.org/show_bug.cgi?id=762755

10 years agoFixes to Catalan translation
Jordi Mas [Mon, 29 Feb 2016 15:34:30 +0000 (16:34 +0100)]
Fixes to Catalan translation

10 years agoframe: Fix horizontal size request
Timm Bäder [Fri, 26 Feb 2016 13:07:49 +0000 (14:07 +0100)]
frame: Fix horizontal size request

We were adding the border gadget size and the label widget size in any
case, but when calculating the width, we want the maximum of those two,
not the sum.

https://bugzilla.gnome.org/show_bug.cgi?id=760482

10 years agogdk: remove the core_pointer field from GdkDisplay
Paolo Borelli [Sun, 28 Feb 2016 14:15:29 +0000 (15:15 +0100)]
gdk: remove the core_pointer field from GdkDisplay

It is not used anymore, so no need to set it

https://bugzilla.gnome.org/show_bug.cgi?id=762820

10 years agoquartz: get the core pointer from the device manager
Paolo Borelli [Sun, 28 Feb 2016 14:11:45 +0000 (15:11 +0100)]
quartz: get the core pointer from the device manager

https://bugzilla.gnome.org/show_bug.cgi?id=762820

10 years agobroadway: get the core pointer from the device manager
Paolo Borelli [Sun, 28 Feb 2016 14:06:53 +0000 (15:06 +0100)]
broadway: get the core pointer from the device manager

https://bugzilla.gnome.org/show_bug.cgi?id=762820

10 years agogdkdisplay: get the pointer device from the default seat
Paolo Borelli [Sun, 28 Feb 2016 14:05:32 +0000 (15:05 +0100)]
gdkdisplay: get the pointer device from the default seat

https://bugzilla.gnome.org/show_bug.cgi?id=762820

10 years agogdkwindow: get the pointer device from the default seat
Paolo Borelli [Sun, 28 Feb 2016 14:04:40 +0000 (15:04 +0100)]
gdkwindow: get the pointer device from the default seat

https://bugzilla.gnome.org/show_bug.cgi?id=762820

10 years agoAdd and use GDK_CHECK_DEBUG macro
Matthias Clasen [Mon, 29 Feb 2016 02:29:35 +0000 (21:29 -0500)]
Add and use GDK_CHECK_DEBUG macro

This is following what we've already done in GTK+. It avoids
direct access to _gdk_debug_flags all over the place.

10 years agox11: Don't use g_print for debug output
Matthias Clasen [Mon, 29 Feb 2016 02:29:16 +0000 (21:29 -0500)]
x11: Don't use g_print for debug output

The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.

10 years agowayland: Don't use g_print for debug output
Matthias Clasen [Mon, 29 Feb 2016 02:28:01 +0000 (21:28 -0500)]
wayland: Don't use g_print for debug output

The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.

10 years agoquartz: Don't use g_print for debug output
Matthias Clasen [Mon, 29 Feb 2016 02:26:26 +0000 (21:26 -0500)]
quartz: Don't use g_print for debug output

The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.

10 years agogdk: Don't use g_print for debug output
Matthias Clasen [Sun, 28 Feb 2016 20:39:05 +0000 (15:39 -0500)]
gdk: Don't use g_print for debug output

The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.

10 years agotestsuite: Fix up icontheme test
Matthias Clasen [Sun, 28 Feb 2016 20:36:14 +0000 (15:36 -0500)]
testsuite: Fix up icontheme test

This test was relying on GtkIconTheme using g_print for
debug spew. Adapt it to use g_logv instead.

10 years agoDon't use g_print for debug output
Matthias Clasen [Sun, 28 Feb 2016 20:33:18 +0000 (15:33 -0500)]
Don't use g_print for debug output

The g_print documentation explicitly says not to do this, since
g_print is meant to be redirected by applications. Instead use
g_message for logging that can be triggered via GTK_DEBUG.

10 years agoDrop some unused debug printfs
Matthias Clasen [Sun, 28 Feb 2016 20:26:52 +0000 (15:26 -0500)]
Drop some unused debug printfs

Remove some debug spew that has been ifdef'ed out for years
and does not look useful enough to keep.

10 years agowidget: make sure to check all children for allocation needs
Cosimo Cecchi [Sun, 28 Feb 2016 18:58:06 +0000 (10:58 -0800)]
widget: make sure to check all children for allocation needs

GtkWidget uses gtk_container_foreach() to iterate over children and
check whether they need their allocation reset.
However, that leaves out internal children, such as scrollbars of a
GtkScrolledWindow. Use gtk_container_forall() instead.

10 years agogdk: remove _gdk_event_queue_prepend
Paolo Borelli [Sun, 28 Feb 2016 18:00:41 +0000 (19:00 +0100)]
gdk: remove _gdk_event_queue_prepend

It is never used

10 years agodisplay: Don't change default seat in flight
Matthias Clasen [Sun, 28 Feb 2016 17:31:20 +0000 (12:31 -0500)]
display: Don't change default seat in flight

gdk_display_add_seat was prepending new seats to the list, which
was effectively making the added seat the new default. Since that
is probably not intended, append to the list.

10 years agotestsuite: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 17:22:55 +0000 (12:22 -0500)]
testsuite: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agotests: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 17:21:29 +0000 (12:21 -0500)]
tests: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agowayland: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 17:21:09 +0000 (12:21 -0500)]
wayland: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agoquartz: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 17:20:56 +0000 (12:20 -0500)]
quartz: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agogdk: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 17:20:39 +0000 (12:20 -0500)]
gdk: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agox11: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 17:19:58 +0000 (12:19 -0500)]
x11: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agobroadway: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 17:19:31 +0000 (12:19 -0500)]
broadway: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agoexamples: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 17:19:09 +0000 (12:19 -0500)]
examples: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agogtk-demo: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 17:18:36 +0000 (12:18 -0500)]
gtk-demo: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agogtk: Strip newlines from g_warning and g_error
Matthias Clasen [Sun, 28 Feb 2016 16:06:25 +0000 (11:06 -0500)]
gtk: Strip newlines from g_warning and g_error

g_logv adds one for us already.

10 years agogdkwindow: cleanup, avoid direct access to display members
Paolo Borelli [Sun, 28 Feb 2016 15:22:31 +0000 (16:22 +0100)]
gdkwindow: cleanup, avoid direct access to display members

10 years agoUpdated POTFILES.skip
Piotr Drąg [Sun, 28 Feb 2016 16:11:05 +0000 (17:11 +0100)]
Updated POTFILES.skip

10 years agowin32: close the screen when disposing the display
Paolo Borelli [Sun, 28 Feb 2016 14:33:28 +0000 (15:33 +0100)]
win32: close the screen when disposing the display

10 years agoAdd a release note about subclassing
Matthias Clasen [Sun, 28 Feb 2016 14:38:31 +0000 (09:38 -0500)]
Add a release note about subclassing

This is showing up in bug reports like
https://bugzilla.gnome.org/show_bug.cgi?id=762754
so better add a note that gives a hint at the solution.

10 years agoframe: Don't move border gadget and child down
Timm Bäder [Fri, 26 Feb 2016 13:09:28 +0000 (14:09 +0100)]
frame: Don't move border gadget and child down

Setting label-yalign should affect the border gadget, but we need to
compensate for its position by moving the child down or up, depending on
the border gadget's position, so the child never moves.

https://bugzilla.gnome.org/show_bug.cgi?id=762123

10 years agoFix builddir != srcdir
Emmanuele Bassi [Sun, 28 Feb 2016 12:21:26 +0000 (12:21 +0000)]
Fix builddir != srcdir

The gdkprivate-wayland.h header file is included from the top-level gdk
directory; this means that all included files referenced in the header
must be relative to the `gdk` directory, otherwise the build will fail
when the build directory is not equal to the source directory.

This commit fixes a build failure under continuous:

In file included from ../../gdk/gdkdisplaymanager.c:60:0:
../../gdk/wayland/gdkprivate-wayland.h:40:51: fatal error:
gtk-primary-selection-client-protocol.h: No such file or directory
 #include "gtk-primary-selection-client-protocol.h"
                                                   ^
compilation terminated.
Makefile:1155: recipe for target 'libgdk_3_la-gdkdisplaymanager.lo' failed
make[4]: *** [libgdk_3_la-gdkdisplaymanager.lo] Error 1

10 years agowin32: factor out on_displaychange_event method for the screen
Paolo Borelli [Sun, 28 Feb 2016 11:03:00 +0000 (12:03 +0100)]
win32: factor out on_displaychange_event method for the screen

This allows us to make more initialization methods private to the
screen object.

10 years agowin32: make init_root_window private to the screen object
Paolo Borelli [Sun, 28 Feb 2016 10:56:01 +0000 (11:56 +0100)]
win32: make init_root_window private to the screen object

It can be called during the screen object initilization

10 years agowin32: move function
Paolo Borelli [Sun, 28 Feb 2016 10:53:10 +0000 (11:53 +0100)]
win32: move function

Just reorder code in preparation to calling functions defined
before this one

10 years agowin32: rename initialization function for clarity
Paolo Borelli [Sun, 28 Feb 2016 10:50:07 +0000 (11:50 +0100)]
win32: rename initialization function for clarity

10 years agowin32: do not confuse gtk-doc
Paolo Borelli [Sun, 28 Feb 2016 10:25:54 +0000 (11:25 +0100)]
win32: do not confuse gtk-doc

10 years agowin32: move gdkvisual code in gdkscreen
Paolo Borelli [Sat, 27 Feb 2016 14:23:19 +0000 (15:23 +0100)]
win32: move gdkvisual code in gdkscreen

Except for the init function, all the visual related code is made
of gdkscreen vfuncs, so let's move it to gdkscreen-win32. This way
we avoid keeping other static variables and instead store the info
inside the screen struct.

10 years agogtk-demo: Simplify ui files a bit
Matthias Clasen [Sun, 28 Feb 2016 04:46:25 +0000 (23:46 -0500)]
gtk-demo: Simplify ui files a bit

Strip unneeded IDs.

10 years agogtk-demo: Put hte app menu in a separate file
Matthias Clasen [Sun, 28 Feb 2016 04:43:06 +0000 (23:43 -0500)]
gtk-demo: Put hte app menu in a separate file

No need to cram it in the same file as the main window.

10 years agogtk-demo: Add some padding in sidebar
Matthias Clasen [Sun, 28 Feb 2016 04:35:33 +0000 (23:35 -0500)]
gtk-demo: Add some padding in sidebar

Add some padding on the right, to avoid the scrollbar and make
the sidebar appear balanced.

10 years agotutorial: Drop excessive margin from headerbar
Matthias Clasen [Sun, 28 Feb 2016 04:28:17 +0000 (23:28 -0500)]
tutorial: Drop excessive margin from headerbar

It is no longer necessary to add extra margins around the
center child in a headerbar.

10 years agowidget-factory: Make the sliding opt-in
Matthias Clasen [Sun, 28 Feb 2016 04:12:15 +0000 (23:12 -0500)]
widget-factory: Make the sliding opt-in

The sliding is a little disorienting, so turn it off by default
and add a checkbutton for it in the gear menu.

10 years agofile chooser: Don't ellipsize "Other Locations"
Matthias Clasen [Sun, 28 Feb 2016 04:03:55 +0000 (23:03 -0500)]
file chooser: Don't ellipsize "Other Locations"

It just looks wrong if the file chooser comes up with
"Other Locations" ellipsized. Treat it like the other
fixed entries. We only want to ellipsize bookmarks, because
their length is unpredictable.

10 years agogtk3-demo: Update css
Matthias Clasen [Sun, 28 Feb 2016 03:39:09 +0000 (22:39 -0500)]
gtk3-demo: Update css

Clean up any deprecation warnings from the css examples in
gtk3-demo.